import { createRouter, createWebHashHistory } from "vue-router";
import Container from "@/components/container/src/index.vue";
const routes = [
  {
    path: "/",
    component: Container,
    children: [
      {
        path: "/home",
        name: "home",
        component: () => import("../view/Home.vue"),
      },
      {
        path: "/icon",
        component: () => import("../view/chooseIcon/index.vue"),
      },
      {
        path: "/province",
        component: () => import("../view/chooseArea/index.vue"),
      },
      {
        path: "/trend",
        component: () => import("../view/trend/index.vue"),
      },
      {
        path: "/notify",
        component: () => import("../view/notification/index.vue"),
      },
      {
        path: "/menu",
        component: () => import("../view/menu/index.vue"),
      },
      {
        path: "/time",
        component: () => import("../view/time/index.vue"),
      },
      {
        path: "/date",
        component: () => import("../view/date/index.vue"),
      },
      {
        path: "/progress",
        component: () => import("../view/progress/index.vue"),
      },
      {
        path: "/city",
        component: () => import("../view/city/index.vue"),
      },
      {
        path: "/calendar",
        component: () => import("../view/calendar/index.vue"),
      },
      {
        path: "/test",
        component: () => import("../view/test/index.vue"),
      },
    ],
  },
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});
export default router;
